<%-- 
    Document   : nameView
    Created on : Dec 10, 2011, 4:39:16 PM
    Author     : Yuuzaa
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Measurement</title>
    </head>
    <body>
        <h1>Measurement</h1>
        <spring:nestedPath path="mName">
            <table>
                <form action="" method="post">
                    <tr>
                        <td>
                            Report measurement:<br>
                            <spring:bind path="sendTo">
                                <input type="radio" name="sendTo" value="Krado1LP"> Krado 1 Load Profile<br>
                                <input type="radio" name="sendTo" value="Krado1M"> Krado 1 Measurement<br>
                                <input type="radio" name="sendTo" value="ESM1" checked> Electricity Supplier 1 Measurement<br> 
                                <input type="radio" name="sendTo" value="ESM2" checked> Electricity Supplier 2 Measurement<br> 
                                <input type="radio" name="sendTo" value="Krado2LP"> Krado 2 Load Profile<br>
                                <input type="radio" name="sendTo" value="Krado2M"> Krado 2 Measurement<br>
                            </spring:bind>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Contract ID:
                            <spring:bind path="contractId">
                                <input type="text" name="${status.expression}" value="${status.value}">
                            </spring:bind>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Start date(DD.MM.YYYY):
                            <spring:bind path="startDate">
                                <input type="text" name="${status.expression}" value="${status.value}">
                            </spring:bind>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            End date(DD.MM.YYYY):
                            <spring:bind path="endDate">
                                <input type="text" name="${status.expression}" value="${status.value}">
                            </spring:bind>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Reading type:
                            <spring:bind path="readingType">
                                <select name="readingType" id="readingType">
                                    <option value="MEASUREMENT">MEASUREMENT</option>
                                    <option value="FORECAST">FORECAST</option>
                                </select>
                            </spring:bind>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Reading value:
                            <spring:bind path="reading">
                                <input type="text" name="${status.expression}" value="${status.value}">
                            </spring:bind>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Area ID:
                            <spring:bind path="areaId">
                                <input type="text" name="${status.expression}" value="${status.value}">
                            </spring:bind>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Consumption:
                            <spring:bind path="consumption">
                                <input type="text" name="${status.expression}" value="${status.value}">
                            </spring:bind>
                        </td>
                    </tr>


                    <tr>
                        <td>
                            <input type="submit" name="actionId" value="Send message"/>
                        </td>
                    </tr>
                </form>
            </table>
        </spring:nestedPath>
    </body>
</html>
